package com.amiba.crm.admin.mapper;

import com.amiba.crm.admin.domain.entity.QuartzEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 任务调度mapper
 * Create By HZI.HUI
 * 2019/5/27 14:55
 */
public interface QuartzMapper extends BaseMapper<QuartzEntity> {

    /**
     * 获取任务总数
     * @param map
     * @return
     */
    int queryQuartzCount(Map<String, Object> map);

    /**
     * 分页获取任务列表
     * @param quartz
     * @param page
     * @return
     */
    IPage<List<QuartzEntity>> queryQuartzList(Page page, @Param("quartz") QuartzEntity quartz);
}
